package com.library.dao;

import com.library.entity.Book;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface BookMapper {
    List<Book> selectAll();
    Book selectById(@Param("id") Integer id);
    int insert(Book book);
    int update(Book book);
    int deleteById(@Param("id") Integer id);
    List<Book> searchBooks(@Param("keyword") String keyword);
}